package com.zh.www.utils.util;

import java.util.List;

/**
 * @author zh
 * @version 1.0
 * @date 2020/6/15 10:45
 * @email 690378361@163.com
 */
public class ListUtils  {

    /**
     * 判断list 为Null 或者为空
     * @param list
     * @return
     */
    public Boolean isEmpty(List list){
        if(null == list || list.isEmpty()){
            return true;
        }
        return false;
    }

    /**
     * 判断list 不为Null 且不为空
     * @param list
     * @return
     */
    public Boolean isNotEmpty(List list){
        return !isEmpty(list);
    }
}
